set -xe
SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

bazel build -c dbg cc/experimental/xguo/proto:product_parser_checker
JQFILE="${SOURCE_DIR}/gen_product_checker_test.jq"

cat ${1} | jq -r -f ${JQFILE}
